package sg.edu.nus.iss.umpire.dao;

import sg.edu.nus.iss.umpire.dao.jpa.DAOFactoryImpl;

public abstract class DAOFactory {
	private static DAOFactory instance = new DAOFactoryImpl();

	public static <T> T getDAO(Class<T> type) {
		return getInstance().getDAOImpl(type);
	}

	private static DAOFactory getInstance() {

		return instance;
	}


	protected abstract <T> T getDAOImpl(Class<T> type);
}
